package cn.iocoder.yudao.module.game.dal.mysql.addMoney;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.game.dal.dataobject.addMoney.AddMoneyDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.yudao.module.game.controller.admin.addMoney.vo.*;

/**
 * 加钱 Mapper
 *
 * @author 芋道源码
 */
@Mapper
public interface AddMoneyMapper extends BaseMapperX<AddMoneyDO> {

    default PageResult<AddMoneyDO> selectPage(AddMoneyPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<AddMoneyDO>()
                .eqIfPresent(AddMoneyDO::getMemberId, reqVO.getMemberId())
                .betweenIfPresent(AddMoneyDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(AddMoneyDO::getId));
    }

}